package game.util.sosc;

import java.awt.Color;

public class ColorConverter implements IStringObjectStringConverter<Color>
{
    @Override
    public Color toObject(String string)
    {
        return new Color(Integer.parseInt(string));
    }

    @Override
    public String toString(Color object)
    {
        return String.valueOf(object.getRGB());
    }
}
